package grex;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2003</p>
 * <p>Company: </p>
 * @author not attributable
 * @version 1.0
 */
import java.awt.TextArea;
public class ProgressWriter extends Thread{
  TextArea txaOutput;
  int nrOfDots=0;
  public ProgressWriter(TextArea txa){
    txaOutput=txa;
  }
  public void run(){
    try{
      while (!this.isInterrupted()) {
        this.sleep(500);
        txaOutput.append(".");
        nrOfDots++;
        if(nrOfDots>180){
          nrOfDots=0;
          txaOutput.append("\n");
        }
      }
    }
    catch (InterruptedException e) {
    }

  }
}
